package com.javaweb.bookstore.component;

import com.javaweb.bookstore.entity.UserInfo;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class SessionManager {
    static{
        new Thread(){

            @Override
            public void run() {
                while(true){
                    new Date();
                    //检查超时的session对象并移走
                }
            }
            

        }.start();
    }
    public static Map<String, UserInfo> sessions = new HashMap<>();
}
